﻿<Page
    x:Class="MathExpressionRender.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:win2d="using:Microsoft.Graphics.Canvas.UI.Xaml"
    xmlns:local="using:MathExpressionRender"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="80" />
            <RowDefinition Height="60" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel Margin="40,30,40,0" Orientation="Horizontal">
            <Button Content="Sample 1" Click="Sample1" />
            <Button Content="Sample 2" Click="Sample2" />
            <Button Content="Sample 3" Click="Sample3" />
            <Button Content="Sample 4" Click="Sample4" />
            <Button Content="Sample 5" Click="Sample5" />
            <Button Content="Sample 6" Click="Sample6" />
            <TextBlock Text="Size:" FontSize="36" Margin="40,0,10,0"/>
            <Slider x:Name="sizeSlider" Minimum="20" Maximum="200" Value="120" Orientation="Horizontal" Width="200" />
        </StackPanel>
        <TextBlock x:Name="sourceTextBlock" Margin="50,0,40,0" TextWrapping="Wrap" Grid.Row="1" FontSize="20" Foreground="White" VerticalAlignment="Bottom" />
        <Border Grid.Row="2" Margin="40,0,40,40" BorderThickness="4" Background="White">
            <win2d:CanvasControl x:Name="myCanvas" Draw="OnDraw" />
        </Border>
    </Grid>
</Page>
